package dao;

import ucm.User;
import ucm.Flight;
import ucm.Admin;

/**
 * Created by IntelliJ IDEA.
 * User: NecromancyBlack
 * Date: 18/03/2009
 * Time: 8:32:57 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class MyDAO {
    protected static MyDAO instance;

    protected MyDAO() {

    }

    public static MyDAO getInstance() {
        return instance;
    }

    public static void setInstance(MyDAO instance) {
        MyDAO.instance = instance;
    }

    public abstract User getUser(String username, String pwd)
        throws MyDAOException;

    public abstract Flight getFlight(String flightID)
        throws MyDAOException;

    public abstract Admin getAdmin(String adminID)
        throws MyDAOException;

    public abstract void createUser(String userName, String password, String firstName, String lastName, String homeAddress,
                String mailingAddress, String contactPhone, String contactEmail)
        throws MyDAOException;

    public abstract void createManager(String managerName, String password)
        throws MyDAOException;
}
